package unit3.part7;

public class BreakTest {
    public static void main(String[] args) {
        // break
        for (int i = 0; i < 10; i++) {
            if (i == 3) {
                break;
            }
            System.out.println(i);
        }
        System.out.println("============");
        // continue
        for (int i = 0; i < 10; i++) {
            if (i == 3) {
                continue;
            }
            System.out.println(i);
        }
        System.out.println("============");
        // continue
        for (int i = 0; i < 10; i++) {
            if (i == 3) {
                return;
            }
            System.out.println(i);
        }
        System.out.println("本行不会被打印");
    }
}
